﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Data;

namespace QL_LichCT.Entities
{
    class LOPHOCPHAN
    {
        private string _malop;

        public string malop
        {
            get { return _malop; }
            set { _malop = value; }
        }

        private string _tenlop;

        public string tenlop
        {
            get { return _tenlop; }
            set { _tenlop = value; }
        }

        private int _siso;

        public int siso
        {
            get { return _siso; }
            set { _siso = value; }
        }

        private int _tuan_bd;

        public int tuan_bd
        {
            get { return _tuan_bd; }
            set { _tuan_bd = value; }
        }

        private int _tuan_kt;

        public int tuan_kt
        {
            get { return _tuan_kt; }
            set { _tuan_kt = value; }
        }

        private string _macb;

        public string macb
        {
            get { return _macb; }
            set { _macb = value; }
        }

        private string _mamon;

        public string mamon
        {
            get { return _mamon; }
            set { _mamon = value; }
        }

        private int _tuan_bdth;

        public int tuan_bdth
        {
            get { return _tuan_bdth; }
            set { _tuan_bdth = value; }
        }

        private int _tuan_ktth;

        public int tuan_ktth
        {
            get { return _tuan_ktth; }
            set { _tuan_ktth = value; }
        }

        public LOPHOCPHAN()
        {
        }

        public LOPHOCPHAN(DataRow row)
        {
            this._malop = row["malop"].ToString();
            this._tenlop = row["tenlop"].ToString();
            this._siso = (int)row["siso"];
            this._tuan_bd = (int)row["tuan_bd"];
            this._tuan_kt = (int)row["tuan_kt"];
            this._macb = row["macb"].ToString();
            this._mamon = row["mamon"].ToString();
            this._tuan_bdth = (int)row["tuan_bdth"];
            this._tuan_ktth = (int)row["tuan_ktth"];
        }

        public LOPHOCPHAN(string malop, string tenlop, int siso, int tuan_bd,  int tuan_kt, string macb, string mamon, int tuan_bdth, int tuan_ktth)
        {
            this._malop = malop;
            this._tenlop = tenlop;
            this._siso = siso;
            this._tuan_bd = tuan_bd;
            this._tuan_kt = tuan_kt;
            this._macb = macb;
            this._mamon = mamon;
            this._tuan_bdth = tuan_bdth;
            this._tuan_ktth = tuan_ktth;
        }

    }
}
